#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <stdlib.h>
void reverse_string(char* arr,int i,int n)
{
	if (i >= n)
		return;
	char temp = arr[i];
	arr[i] = arr[n];
	arr[n] = temp;
	reverse_string(arr, i+1, n-1);
}
int main()
{
	char arr[] = "abcdef";
	int n = strlen(arr);
	reverse_string(arr,0,n-1);
	printf("%s", arr);
	return 0;
}

